package kr.co.redcircle.service.oAuth.api.daum.tistory;

import kr.co.redcircle.service.oAuth.service.DaumTiStory20Api;

import org.scribe.model.OAuthConfig;

public class TistoryApi  extends DaumTiStory20Api {

	private static final String AUTHORIZE_URL = "https://www.tistory.com/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code";

	@Override
	public String getAccessTokenEndpoint() {
		return "https://www.tistory.com/oauth/access_token/";
	}

	@Override
	public String getAuthorizationUrl(OAuthConfig config) {
		return String.format(AUTHORIZE_URL, config.getApiKey(), config.getCallback());
	}


}
